.class public Lcom/baidu/mobads/SplashAd;
.super Ljava/lang/Object;
.source "SourceFile"


# instance fields
.field private a:Lcom/baidu/mobads/production/g/a;

.field private b:I

.field private volatile c:Ljava/lang/String;

.field private d:Landroid/content/Context;

.field private e:Lcom/baidu/mobads/SplashAdListener;

.field private f:Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;)V
    .locals 6

    const/4 v5, 0x1

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    .line 1
    invoke-direct/range {v0 .. v5}, Lcom/baidu/mobads/SplashAd;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;Z)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;I)V
    .locals 8

    const/4 v5, 0x1

    const/4 v6, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move v7, p5

    .line 3
    invoke-direct/range {v0 .. v7}, Lcom/baidu/mobads/SplashAd;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;ZLcom/baidu/mobad/feeds/RequestParameters;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;Z)V
    .locals 7

    const/4 v6, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move v5, p5

    .line 2
    invoke-direct/range {v0 .. v6}, Lcom/baidu/mobads/SplashAd;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;ZLcom/baidu/mobad/feeds/RequestParameters;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;ZLcom/baidu/mobad/feeds/RequestParameters;)V
    .locals 8

    const/4 v5, 0x1

    const/16 v7, 0x1068

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move-object v6, p6

    .line 4
    invoke-direct/range {v0 .. v7}, Lcom/baidu/mobads/SplashAd;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;ZLcom/baidu/mobad/feeds/RequestParameters;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/baidu/mobads/SplashAdListener;Ljava/lang/String;ZLcom/baidu/mobad/feeds/RequestParameters;I)V
    .locals 13

    move-object v9, p0

    move-object v0, p1

    move-object v10, p2

    move-object/from16 v1, p3

    .line 5
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v2, 0x4

    .line 6
    iput v2, v9, Lcom/baidu/mobads/SplashAd;->b:I

    const-string v2, "init"

    .line 7
    iput-object v2, v9, Lcom/baidu/mobads/SplashAd;->c:Ljava/lang/String;

    .line 8
    new-instance v2, Lcom/baidu/mobads/r;

    invoke-direct {v2, p0}, Lcom/baidu/mobads/r;-><init>(Lcom/baidu/mobads/SplashAd;)V

    iput-object v2, v9, Lcom/baidu/mobads/SplashAd;->e:Lcom/baidu/mobads/SplashAdListener;

    .line 9
    new-instance v2, Lcom/baidu/mobads/s;

    invoke-direct {v2, p0}, Lcom/baidu/mobads/s;-><init>(Lcom/baidu/mobads/SplashAd;)V

    iput-object v2, v9, Lcom/baidu/mobads/SplashAd;->f:Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    .line 10
    :try_start_0
    iput-object v0, v9, Lcom/baidu/mobads/SplashAd;->d:Landroid/content/Context;

    .line 11
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sput-wide v2, Lcom/baidu/mobads/constants/a;->l:J

    const-wide/16 v2, 0x0

    .line 12
    sput-wide v2, Lcom/baidu/mobads/constants/a;->m:J

    .line 13
    sput-wide v2, Lcom/baidu/mobads/constants/a;->n:J

    .line 14
    sput-wide v2, Lcom/baidu/mobads/constants/a;->o:J

    .line 15
    sput-wide v2, Lcom/baidu/mobads/constants/a;->p:J

    .line 16
    sput-wide v2, Lcom/baidu/mobads/constants/a;->q:J

    .line 17
    sput-wide v2, Lcom/baidu/mobads/constants/a;->r:J

    .line 18
    invoke-static {}, Lcom/baidu/mobads/AppActivity;->isAnti()Z

    move-result v2

    if-nez v2, :cond_0

    .line 19
    invoke-direct {p0, p2, p1}, Lcom/baidu/mobads/SplashAd;->a(Landroid/view/ViewGroup;Landroid/content/Context;)V

    :cond_0
    if-eqz v1, :cond_1

    .line 20
    iput-object v1, v9, Lcom/baidu/mobads/SplashAd;->e:Lcom/baidu/mobads/SplashAdListener;

    .line 21
    :cond_1
    invoke-static/range {p4 .. p4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 22
    iget-object v0, v9, Lcom/baidu/mobads/SplashAd;->e:Lcom/baidu/mobads/SplashAdListener;

    const-string v1, "\u8bf7\u60a8\u8f93\u5165\u6b63\u786e\u7684\u5e7f\u544a\u4f4dID"

    invoke-interface {v0, v1}, Lcom/baidu/mobads/SplashAdListener;->onAdFailed(Ljava/lang/String;)V

    return-void

    .line 23
    :cond_2
    new-instance v11, Lcom/baidu/mobads/component/XAdView;

    invoke-direct {v11, p1}, Lcom/baidu/mobads/component/XAdView;-><init>(Landroid/content/Context;)V

    .line 24
    new-instance v12, Lcom/baidu/mobads/u;

    move-object v1, v12

    move-object v2, p0

    move-object v3, p1

    move-object v4, v11

    move-object/from16 v5, p4

    move/from16 v6, p5

    move/from16 v7, p7

    move-object/from16 v8, p6

    invoke-direct/range {v1 .. v8}, Lcom/baidu/mobads/u;-><init>(Lcom/baidu/mobads/SplashAd;Landroid/content/Context;Lcom/baidu/mobads/component/XAdView;Ljava/lang/String;ZILcom/baidu/mobad/feeds/RequestParameters;)V

    invoke-virtual {v11, v12}, Lcom/baidu/mobads/component/XAdView;->setListener(Lcom/baidu/mobads/component/XAdView$Listener;)V

    .line 25
    new-instance v0, Landroid/view/ViewGroup$LayoutParams;

    const/4 v1, -0x1

    invoke-direct {v0, v1, v1}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 26
    invoke-virtual {v11, v0}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 27
    invoke-virtual {p2, v11}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 28
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdLogger()Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/Throwable;)I

    .line 29
    invoke-static {}, Lcom/baidu/mobads/b/a;->a()Lcom/baidu/mobads/b/a;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "splash ad create failed: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/baidu/mobads/b/a;->a(Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/SplashAdListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/baidu/mobads/SplashAd;->e:Lcom/baidu/mobads/SplashAdListener;

    return-object p0
.end method

.method static synthetic a(Lcom/baidu/mobads/SplashAd;Lcom/baidu/mobads/production/g/a;)Lcom/baidu/mobads/production/g/a;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/baidu/mobads/SplashAd;->a:Lcom/baidu/mobads/production/g/a;

    return-object p1
.end method

.method private a(Landroid/view/ViewGroup;Landroid/content/Context;)V
    .locals 2

    .line 3
    :try_start_0
    new-instance v0, Landroid/view/SurfaceView;

    invoke-direct {v0, p2}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V

    .line 4
    new-instance p2, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, 0x0

    invoke-direct {p2, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 5
    invoke-virtual {p1, v0, p2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 6
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p2

    invoke-virtual {p2}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdLogger()Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    move-result-object p2

    invoke-interface {p2, p1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/Throwable;)I

    :goto_0
    return-void
.end method

.method static synthetic b(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/production/g/a;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/baidu/mobads/SplashAd;->a:Lcom/baidu/mobads/production/g/a;

    return-object p0
.end method

.method static synthetic c(Lcom/baidu/mobads/SplashAd;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/baidu/mobads/SplashAd;->d:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic d(Lcom/baidu/mobads/SplashAd;)Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/baidu/mobads/SplashAd;->f:Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    return-object p0
.end method

.method static synthetic e(Lcom/baidu/mobads/SplashAd;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/baidu/mobads/SplashAd;->b:I

    return p0
.end method

.method public static setAppSec(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    return-void
.end method

.method public static setAppSid(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p0

    invoke-virtual {p0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/h;

    move-result-object p0

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/utils/h;->setAppId(Ljava/lang/String;)V

    return-void
.end method

.method public static setBitmapDisplayMode(I)V
    .locals 0

    .line 1
    invoke-static {p0}, Lcom/baidu/mobads/production/g/a;->a(I)V

    return-void
.end method

.method public static setMaxVideoCacheCapacityMb(I)V
    .locals 2

    const/16 v0, 0xf

    if-lt p0, v0, :cond_0

    const/16 v0, 0x64

    if-gt p0, v0, :cond_0

    .line 1
    invoke-static {p0}, Lcom/baidu/mobads/utils/m;->a(I)V

    goto :goto_0

    :cond_0
    const/16 p0, 0x1e

    .line 2
    invoke-static {p0}, Lcom/baidu/mobads/utils/m;->a(I)V

    .line 3
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p0

    invoke-virtual {p0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getErrorCode()Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    move-result-object p0

    const-string v0, ""

    const-string v1, "\u5f00\u5c4f\u8bbe\u7f6e\u89c6\u9891\u6700\u5927\u7f13\u5b58\u503c\u6709\u6548\u8303\u56f4\u572815~100M,\u9ed8\u8ba430M"

    .line 4
    invoke-interface {p0, v0, v1, v0}, Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;->printErrorMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method


# virtual methods
.method public destroy()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/SplashAd;->a:Lcom/baidu/mobads/production/g/a;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/baidu/mobads/production/b;->r()V

    :cond_0
    return-void
.end method
